package 移除链表元素;

public class ListNode {
    // 节点的值
    int val;
    // 下一个节点的指针
    ListNode next;

    public ListNode() {
    }

    public ListNode(int value, ListNode next) {
        this.val = value;
        this.next = next;
    }
    @Override
    public String toString() {
        return "ListNode{" +
                "value=" + val +
                ", next=" + next +
                '}';
    }
}
